/**
 * 合并各个子模块的 reducer
 */

// import { combineReducers } from 'redux';
// 将全局的 state 转化为 immutable 格式
import { combineReducers } from 'redux-immutable';

import { reducer as recommendationReducer } from '@/pages/discover/child-pages/Recommendation/store'
import { reducer as searchReducer } from '@/pages/search/store';
import { reducer as searchResultReducer } from '@/pages/search-result/store';

// 合并多个 reducer

const cReducer = combineReducers({
  recommend: recommendationReducer,
  search: searchReducer,
  searchResult: searchResultReducer
});

export default cReducer;
